/*
 * 完全数（4分）
 */

#include <stdio.h>

int main() {
	setbuf(stdout, NULL);

	// NOTE: Variable declaration
	int m, flag = 0;


	// NOTE: Inputs
	printf("Input m:\n");
	scanf("%d", &m);


	// NOTE: Process
	if (m == 1) {
		printf("No!\n");
	} else {
		int factor_m = 1;
		for (int i = 2; i < m; ++i) {
			if (m % i == 0) {
				factor_m += i;
				++flag;
			}
		}

		if (m == factor_m) {
			printf("Yes!\n");

			for (int i = 1; i < m; ++i) {
				if (m % i == 0) {
					if (flag) {
						printf("%d,", i);
						--flag;
					} else {
						printf("%d", i);
					}
				}
			}
		} else {
			printf("No!\n");
		}
	}


	// NOTE: Outputs


	// NOTE: Ending
	return 0;
}
